﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AccountEditor.aspx.cs" Inherits="WebRoot.AccountEditor" %>
<%@ MasterType VirtualPath="~/Site.Master" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

<fieldset style="border: 1px solid black;display:block;padding-left:8%;">

    <asp:Label ID="lblAccountDescription" runat="server"
        AssociatedControlID="AccountDescription" Width="110px"
        Text="Description" />
    <asp:TextBox ID="AccountDescription" runat="server"
        Width="288px" />

    <asp:Label ID="lblAccountNumber" runat="server"
        AssociatedControlID="AccountNumber" Width="110px"
        Text="Account Number:" />
    <asp:TextBox ID="AccountNumber" runat="server"
        Width="200px" />

    <br clear="all" />

    <asp:Label ID="lblWebsite" runat="server"
        AssociatedControlID="Website" Width="110px"
        Text="Website:" />
    <asp:TextBox ID="Website" runat="server"
        Width="288px" />

    <asp:Label ID="lblAccountType" runat="server"
        AssociatedControlID="AccountType" Width="110px"
        Text="Account Type:" />
    <asp:DropDownList ID="AccountType" runat="server"
        Width="153px" />

    <br clear="all" />

    <asp:Label ID="lblUsername" runat="server"
        AssociatedControlID="Username" Width="110px"
        Text="Username:" />
    <asp:TextBox ID="Username" runat="server"
        Width="288px" />

    <asp:Label ID="lblPassword" runat="server"
        AssociatedControlID="Password" Width="110px"
        Text="Password:" />
    <asp:TextBox ID="Password" runat="server"
        Width="150px" TextMode="Password" />

    <br clear="all" />

    <asp:Label ID="lblOpeningBalance" runat="server"
        AssociatedControlID="OpeningBalance" Width="110px"
        Text="Opening Balance:" />
    <asp:TextBox ID="OpeningBalance" runat="server"
        Width="150px" />

    <asp:Label ID="lblInterestRate" runat="server"
        AssociatedControlID="InterestRate" Width="247px"
        Text="Interest Rate:" />
    <asp:TextBox ID="InterestRate" runat="server"
        Width="150px" />

    <br clear="all" />

    <span style="float:right;padding:20px 10px 0 0;">
        <asp:Button ID="SaveButton" runat="server"
            CssClass="FormButton" Text="Add Account"
            Width="100px" Height="25px" OnClick="SaveButton_Click" />
    </span>

</fieldset>

<asp:ListView ID="AccountsList" runat="server"
    OnItemDataBound="AccountsList_ItemDataBound">
    <LayoutTemplate>
        <table class="billSummary" width="100%" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th style="width:25%;">Account Name</th>
                    <th style="width:20%;">Account Number</th>
                    <th style="width:20%;">Type</th>
                    <th style="width:35%;">Website</th>
                </tr>
            </thead>
            <tbody>
                <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
            </tbody>
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <tr>
            <td><%#Eval("Description") %></td>
            <td><%#Eval("AccountNumber") %></td>
            <td><asp:Literal ID="AccounType" runat="server" /></td>
            <td><%#Eval("Website") %></td>
        </tr>
    </ItemTemplate>
</asp:ListView>

</asp:Content>
